import IDeptInsertOrUpdateForm from '@/model/form/dept/IDeptInsertOrUpdateForm'
import IResVO from '@/model/vo/common/IResVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 新增/修改 部门
export default function deptInsertOrUpdateApi(form: IDeptInsertOrUpdateForm) {
  return $http.post<IResVO, AxiosResponse<IResVO>, IDeptInsertOrUpdateForm>(
    '/dept/insertOrUpdate',
    form
  )
}
